    import java.util.Arrays;  
import java.util.Collections;
import java.util.List;  
import java.util.ArrayList;  
    public class StringArrayTest  
    {  
       public static void main(String[] args)  
       {  
          String[] words = {"john", "jane", "jenny", "joe", "joan" ,"jake"};  
       
          List<String> wordList = Arrays.asList(words);  
          Collections.sort(wordList);
          Collections.sort(wordList);
          for (String e : wordList)  
          {  
             System.out.println(e);  
          }  
       }  
    }  